package com.niiwoo.civet.trade.dao.mapper;

import com.niiwoo.civet.trade.dao.entity.KaolaWithholdOrder;

import java.util.List;

public interface KaolaWithholdOrderMapperExt extends KaolaWithholdOrderMapper{

    /**
     * 获取最近一次交易的协议号，以重用
     * @param custBankAccountNo 银行账户号
     * @return 协议号
     */
    String selectProtocolNoByAccountNo(String custBankAccountNo);

    /**
     * @return
     */
    List<KaolaWithholdOrder> selectNeedDealKaolaWithholdOrderList();
    List<KaolaWithholdOrder> selectNeedSetFail();


    List<KaolaWithholdOrder> selectStatusNullKaolaWithholdOrderList();

    /**
     * 查询交易成功还款失败的代扣记录
     * @return
     */
    List<KaolaWithholdOrder> selectTradeWithholdOrderList();
}